<div id="viewer-container"></div>
<div class="label-info">
  <div class="btn" onclick="add()">显示帧率</div>
  <div class="btn" onclick="remove()">隐藏帧率</div>
</div>
<script>
  let viewer
  CTS.ready(() => {
    viewer = new CTS.Viewer('viewer-container') //初始化场景
  })
  function add(){
    viewer.addStats()
  }
  function remove(){
    viewer.removeStats()
  }
</script>
